import request from '@/utils/request'

// 查询员工个人信息列表
export function listPersonal(query) {
  return request({
    url: '/office/personal/list',
    method: 'get',
    params: query
  })
}

// 查询员工个人信息详细
export function getPersonal(personalId) {
  return request({
    url: '/office/personal/' + personalId,
    method: 'get'
  })
}

// 新增员工个人信息
export function addPersonal(data) {
  return request({
    url: '/office/personal',
    method: 'post',
    data: data
  })
}

// 修改员工个人信息
export function updatePersonal(data) {
  return request({
    url: '/office/personal',
    method: 'put',
    data: data
  })
}

// 删除员工个人信息
export function delPersonal(personalId) {
  return request({
    url: '/office/personal/' + personalId,
    method: 'delete'
  })
}
